package com.fsc.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fsc.entity.domain.ParentInfo;
import com.fsc.entity.dto.ParentDTO;
import com.fsc.service.ParentInfoService;
import com.fsc.mapper.ParentInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 86183
* @description 针对表【parent_info(家长信息表)】的数据库操作Service实现
* @createDate 2024-06-02 13:15:22
*/
@Service
public class ParentInfoServiceImpl extends ServiceImpl<ParentInfoMapper, ParentInfo>
    implements ParentInfoService{

    @Autowired
    private ParentInfoMapper parentInfoMapper;

    public ParentInfo select(int parentId){
        return parentInfoMapper.getParentById(parentId);
    }

    public void update(ParentDTO parentDTO){
        parentInfoMapper.update(parentDTO);
    }

}




